package com.smartao.base.module;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.smartao.core.dao.BaseDao;
import com.smartao.core.service.BaseEntityService;

@Service
public class ModuleServiceImpl extends BaseEntityService<Module, Long> implements ModuleService{

	@Autowired
	private ModuleDao moduleDao;
	
	@Override
	protected BaseDao<Module, Long> getDao() {
		return moduleDao;
	}

	@Override
	public Module findByModuleKey(String moduleKey) {
		return moduleDao.findByModuleKey(moduleKey);
	}
	/**
	 * 查找所有module；
	 * TODO: 此处是否考虑查询缓存
	 */
	@Override
	public List<Module> findAll() {
		return moduleDao.findAll();
	}


}
